package com.sbl.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @Value("${name}")
    private String name ;

    @Value("${person.name}")
    private String addr ;
    @ResponseBody
    @RequestMapping("/sayHello")
    public String sayHello(){
        return "hello SpringBoot 热";
    }


    @ResponseBody
    @RequestMapping("/getFileContent")
    public String getFileContent(){
        return "住址 "+addr;
    }
}
